// Copyright (c) 2015  David Muse
// All rights reserved

#ifndef SQLRMYSQLCREDENTIALS_H
#define SQLRMYSQLCREDENTIALS_H

#include <config.h>
#include <sqlrelay/sqlrserver.h>

class SQLRSERVER_DLLSPEC sqlrmysqlcredentials : public sqlrcredentials {
	public:
			sqlrmysqlcredentials();
		virtual	~sqlrmysqlcredentials();
		const char	*getType();

		void	setUser(const char *user);
		void	setPassword(const char *password);
		void	setPasswordLength(uint64_t passwordlength);
		void	setMethod(const char *method);
		void	setExtra(const char *extra);

		const char	*getUser();
		const char	*getPassword();
		uint64_t	getPasswordLength();
		const char	*getMethod();
		const char	*getExtra();
	private:
		const char	*user;
		const char	*password;
		uint64_t	passwordlength;
		const char	*method;
		const char	*extra;
};

#endif
